package car.aistar.controller.loadjsp;

import car.aistar.dto.TqxCarSelect;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 本类用于：
 *
 * @author 许华钢
 * @Classname NavJsp
 * @Description TODO
 * @date 2020/10/12 8:43
 */
@Controller
@RequestMapping("/NavJsp")
public class NavJsp {

    @RequestMapping("/toIndex")
    public String toIndex(){
        return "index/index02";
    }

    @RequestMapping("/toBuyCar")
    public String toBuyCar(Model model, TqxCarSelect tqxCarSelect){
        model.addAttribute("TqxCarSelect",tqxCarSelect);
        return "buyCar/buyCar02";
    }

    @RequestMapping("/toSellCar")
    public String toSellCar(){
        return "sellCar/sellCar";
    }

    @RequestMapping("/toPerCenter")
    public String toPerCenter(){
        return "perCenter/perCenter";
    }

    @RequestMapping("/toLogin")
    public String toLogin(){
        return "logAndRegist/login";
    }

//    NavJsp/toLogin02
    @RequestMapping("/toLogin02")
    public String toLogin02( ){
        return "logAndRegist/login02";
    }

    @RequestMapping("/toRegister")
    public String toRegister(){
        return "logAndRegist/register";
    }
}
